// 引用网络请求中间件
import request from '../../utils/request.js';

export default {
	/**
	 * @param {Object} prescriptionId
	 */
	getGoodsById(prescriptionId) {
		return request({
			url: `/abbreviationfor/slectXtprescriptionProduct/${prescriptionId}`,
			method: 'GET',
		})
	},
	
	
	/**
	 * "coordinate": {
		"x": 0,
		"y": 0
	}
	 */
	getList(data) {
		return request({
			url: `/abbreviationfor/slectXtprescription`,
			method: 'POST',
			data
		})
	},
	
	
	/**
	 *  
	 "prescriptionId": "string",
		"status": "string"
	 */
	abbreviationforPrescription(data) {
		return request({
			url: `/abbreviationfor/abbreviationforPrescription`,
			method: 'POST',
			data
		})
	},
}